VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Drawing Namespace / DrawingFactory Class / CreateLinearGradientBrush Methods / CreateLinearGradientBrush(RectangleF,GradientStop[]) Method
Syntax Requirements SeeAlso
In This Topic
    CreateLinearGradientBrush(RectangleF,GradientStop[]) Method (DrawingFactory)
    In This Topic
    Creates a linear gradient brush.
    Syntax
    'Declaration
    
    Public Overloads MustOverride Function CreateLinearGradientBrush( _
    ByVal rectangle
    A System.Drawing.RectangleF structure that specifies the bounds of the linear gradient.
    As System.Drawing.RectangleF, _
    ByVal ParamArray gradientStops
    The brush's gradient stops.
    () As GradientStop _
    ) As IDrawingLinearGradientBrush
    public abstract IDrawingLinearGradientBrush CreateLinearGradientBrush(
    System.Drawing.RectangleF rectangle,
    params GradientStop[] gradientStops
    )
    public: abstract IDrawingLinearGradientBrush* CreateLinearGradientBrush(
    System.Drawing.RectangleF* rectangle,
    params GradientStop*[]* gradientStops
    )
    public:
    abstract IDrawingLinearGradientBrush^ CreateLinearGradientBrush(
    System.Drawing.RectangleF^ rectangle,
    ... array<GradientStop^>^ gradientStops
    )

    Parameters

    rectangle
    A System.Drawing.RectangleF structure that specifies the bounds of the linear gradient.
    gradientStops
    The brush's gradient stops.

    Return Value

    A new linear gradient brush.
    Requirements

    Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also